﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;

namespace FM.校时
{

    [ServiceContract(Namespace = "http://FM.校时")]
    public interface I系统时间
    {
        [OperationContract]
        string 查询时间str();

        [OperationContract]
        DateTime 当前时间();
    }


     //[ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Single, InstanceContextMode = InstanceContextMode.Single, UseSynchronizationContext = true)]
    public class 系统时间1 : I系统时间
    {
         public string 查询时间str()
        {
            return DateTime.Now.ToString(CultureInfo.CurrentCulture);

        }

        public DateTime 当前时间()
        {
            return DateTime.Now;
        }
    }
}
